package com.future.direction.common;


import com.future.direction.BuildConfig;

/**
 * Created by ZHP on 2017/6/24.
 */

public class Constant {

    public static boolean IS_RELEASE = false;

    public static String BASE_URL = IS_RELEASE ?
            (BuildConfig.FLAVOR.equals("normal") ? "https://byapi.bychain.net/" /*正式*/ : "http://192.168.74.214:8081/doc.html/"/*测试*/)
            : "http://192.168.74.214:8081/doc.html/";//测试版本API连接地址

    //接口
    public static String imageInterface = getAbsoluteUrl("exchangeApi/common/photo?name=");//图片

    public static String getAbsoluteUrl(String relativeUrl) {
        return String.format("%s%s", BASE_URL, relativeUrl);
    }


    //固定int值
    public static final int alias = 0x111115;
    public static final long TIME_AUTO_POLL = 3 * 1000;//控制首页奖励轮播时长
    public static final long ANIM_DELAYED_MILLIONS = 3 * 1000;//控制首页公告轮播时长
    public static final int TAB_HOME = 0;
    public static final int TAB_FIND = 1;
    public static final int TAB_MINE = 2;


    //key值
    public static final String appType = "1";
    public static final String userParts = "userParts";
    public static final String permission = "close";
    public static final String id = "id";
    public static final String main = "page";
    public static final String web = "url";
    public static final String web_title = "web_title";
    public static final String firstIn = "first";
    public static final String token = "token";
    public static final String position = "position";
    public static final String type = "type";
    public static final String data = "data";
    public static final String from = "from";

    //固定String值


}